<table>
<tr>
	<td class="name">도시</td>
	<td class="name">오늘</td>
	<td class="name">내일</td>
	<td class="name">모레</td>
</tr>
<tr>
	<td class="name">제주</td>
	<%@Cheju['dayf'].each do |ele| %>
		<% ele['day'].each do |item| %>	
	<td>
		<%
		 i = 0
		 item['part'].each do |part| 
		 i = i + 1	
			 if i == 0 
			%>
			<img class="icon" src="http://image.weather.com/web/common/wxicons/31/<%=part['icon']%>.gif" title="<%=part['t']%>" alt="<%=part['t']%>"/> →
			<%
			 else
			%>
			<img class="icon" src="http://image.weather.com/web/common/wxicons/31/<%=part['icon']%>.gif" title="<%=part['t']%>" alt="<%=part['t']%>"/>
			<% end %>
		<% end %>
	
	<p class="temperature">
	 <span class="low">최저</span>
	  <%if item['low'][0] != "N/A" %>
	  <%=sprintf("%.1f", ((item['low'][0].to_i - 32) * 5.0 / 9.0))%>℃
	  <% else %>
	  N/A
	  <% end %>
	  <br/>
	<span class="hi">최고</span> 
	  <%if item['hi'][0] != "N/A" %>
	  <%=sprintf("%.1f", ((item['hi'][0].to_i - 32) * 5.0 / 9.0))%>℃
	  <% else %>
	  N/A
	  <% end %>
	 </p>
	 </td>
	 	<% end %>
	 <% end %>		
</tr>
<tr>
	<td class="name">제주산간</td>
	<%@ChejuUpper['dayf'].each do |ele| %>
		<% ele['day'].each do |item| %>	
	<td>
			<%
		 i = 0
		 item['part'].each do |part| 
		 i = i + 1	
			 if i == 0 
			%>
			<img class="icon" src="http://image.weather.com/web/common/wxicons/31/<%=part['icon']%>.gif" title="<%=part['t']%>" alt="<%=part['t']%>"/> →
			<%
			 else
			%>
			<img class="icon" src="http://image.weather.com/web/common/wxicons/31/<%=part['icon']%>.gif" title="<%=part['t']%>" alt="<%=part['t']%>"/>
			<% end %>
		<% end %>
	
	<p class="temperature">
	 <span class="low">최저</span>
	  <%if item['low'][0] != "N/A" %>
	  <%=sprintf("%.1f", ((item['low'][0].to_i - 32) * 5.0 / 9.0))%>℃
	  <% else %>
	  N/A
	  <% end %>
	  <br/>
	 <span class="hi">최고</span>
	  <%if item['hi'][0] != "N/A" %>
	  <%=sprintf("%.1f", ((item['hi'][0].to_i - 32) * 5.0 / 9.0))%>℃
	  <% else %>
	  N/A
	  <% end %>
	 </p>
	 </td>
	 	<% end %>
	 <% end %>
</tr>
<tr>
	<td class="name">서귀포</td>
	<%@Seogwipo['dayf'].each do |ele| %>
		<% ele['day'].each do |item| %>	
	<td>
			<%
		 i = 0
		 item['part'].each do |part| 
		 i = i + 1	
			 if i == 0 
			%>
			<img class="icon" src="http://image.weather.com/web/common/wxicons/31/<%=part['icon']%>.gif" title="<%=part['t']%>" alt="<%=part['t']%>"/> →
			<%
			 else
			%>
			<img class="icon" src="http://image.weather.com/web/common/wxicons/31/<%=part['icon']%>.gif" title="<%=part['t']%>" alt="<%=part['t']%>"/>
			<% end %>
		<% end %>			
	<p class="temperature">
	 <span class="low">최저</span>
	  <%if item['low'][0] != "N/A" %>
	  <%=sprintf("%.1f", ((item['low'][0].to_i - 32) * 5.0 / 9.0))%>℃
	  <% else %>
	  N/A
	  <% end %>
	  <br/>
	 <span class="hi">최고</span>
	  <%if item['hi'][0] != "N/A" %>
	  <%=sprintf("%.1f", ((item['hi'][0].to_i - 32) * 5.0 / 9.0))%>℃
	  <% else %>
	  N/A
	  <% end %>
	 </p>
	 </td>
	 	<% end %>
	 <% end %>
</tr>
</table>
